sass     = require('gulp-sass')
gutil    = require('gulp-util')
notifier = require("node-notifier")

module.exports = ->
    sass().on 'error', (err) ->
        gutil.log "#{err.plugin}: #{gutil.colors.red(err.name)} (#{err.message}):"
        gutil.log err.stack
        notifier.notify({title: "#{err.plugin}: #{err.name}", message: err.message})

        this.emit 'end'
